file(GLOB SOURCES *.cc)
file(GLOB HEADERS include/*.h)

add_library(server STATIC
  ${SOURCES}
  ${HEADERS}
)

target_include_directories(server
  PUBLIC
    $<INSTALL_INTERFACE:include>
    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
)

target_link_libraries(server
  INTERFACE
    ${OPENSSL_LIBRARIES}
    ${PAM_LIBRARIES}
  PRIVATE
    Szarp2
)
